package com.usercenter.common;

public enum ErrorCode {
    
    NULL_ERROR(400,"由空值导致",""),
    PANARENT_ERROR(401,"参数错误",""),
    SUCCESS(200,"OK" ,""),
    NOT_LOGINN(402,"need to login fiirst",""),
    NO_AUTH(403,"无权限",""),
    SYSTEM_ERROR(500,"系统异常","");
  
    private final int code;
    private final String message;
    private final String description;
    
    ErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }
    
    public int getCode() {
        return code;
    }
    
    public String getMessage() {
        return message;
    }
    
    public String getDescription() {
        return description;
    }
}
